import 'package:cjybase/network/net.dart';
import 'package:cjybase/util/time_util.dart';
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:cjybase/cjybase.dart';
import 'package:cjybase/util/string_util.dart';

void main() {
  const MethodChannel channel = MethodChannel('cjybase');

  TestWidgetsFlutterBinding.ensureInitialized();

  setUp(() {
    channel.setMockMethodCallHandler((MethodCall methodCall) async {
      return '42';
    });
  });

  tearDown(() {
    channel.setMockMethodCallHandler(null);
  });

  test('getPlatformVersion', () async {
    Net.init("http://0.0.0.0:8089", {});

   Net.post("/video_analyze", param: {"url": "https://v.douyin.com/e13AW8x/"},success: (data){
     print(data);
   });

  });
}
